package my.poemlib.vo;

public class Poem {

	private Long id;
	private String title;
	private String author;
	private int topic = 1;
	private int age = 1;
	private int type = 1;
	private String content;
	private String inserttime;
	
	
	private String topicStr;
	private String ageStr;
	private String typeStr;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public int getTopic() {
		return topic;
	}
	public void setTopic(int topic) {
		this.topic = topic;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getInserttime() {
		return inserttime;
	}
	public void setInserttime(String inserttime) {
		this.inserttime = inserttime;
	}
	public String getTopicStr() {
		switch (topic) {
		case 1:
			topicStr = "春";
			break;
		case 2:
			topicStr = "夏";
			break;
		case 3:
			topicStr = "秋";
			break;
		case 4:
			topicStr = "冬";
			break;
		case 5:
			topicStr = "桥";
			break;
		case 6:
			topicStr = "雪";
			break;
		case 7:
			topicStr = "花";
			break;
		case 8:
			typeStr = "鸟";
			break;
		case 9:
			topicStr = "山";
			break;
		case 10:
			topicStr = "月亮";
			break;
		case 11:
			topicStr = "梅花";
			break;
		default:
			topicStr = "未知";
			break;
		}
		return topicStr;
	}
	public void setTopicStr(String topicStr) {
		this.topicStr = topicStr;
	}
	public String getAgeStr() {
		
		switch (age) {
		case 1:
			ageStr = "唐代";
			break;
		case 2:
			ageStr = "宋代";
			break;
		case 3:
			ageStr = "南宋";
			break;
		case 4:
			ageStr = "北宋";
			break;
		default:
			ageStr = "未知";
			break;
		}
		
		return ageStr;
	}
	public void setAgeStr(String ageStr) {
		this.ageStr = ageStr;
	}
	public String getTypeStr() {
		switch (type) {
		case 1:
			typeStr = "五律";
			break;
		case 2:
			typeStr = "五绝";
			break;
		case 3:
			typeStr = "五古";
			break;
		case 4:
			typeStr = "五排";
			break;
		case 5:
			typeStr = "七律";
			break;
		case 6:
			typeStr = "七绝";
			break;
		case 7:
			typeStr = "七古";
			break;
		case 8:
			typeStr = "七排";
			break;
		default:
			typeStr = "未知";
			break;
		}
		return typeStr;
	}
	public void setTypeStr(String typeStr) {
		this.typeStr = typeStr;
	}
	
	
}
